#define SYSTEM_TIME_YEAR_MAX 2222
#define SYSTEM_TIME_MONTH_MAX 13
#define SYSTEM_TIME_HOUR_MAX 24
#define SYSTEM_TIME_MINUTE_MAX 60
#define SYSTEM_TIME_SECOND_MAX 60
#define SYSTEM_TIME_MILLISECOND_MAX 1000

typedef struct system_time_store_struct // 占用64位对齐//占用72位
{
    uint16_t year;
    uint8_t  month/*:4*/;
    uint8_t  hour/*:4*/;
    uint8_t  day;
    uint8_t  minute;
    uint8_t  second;
    uint16_t  millisecond;
}system_time_struct;

extern system_time_struct system_time;
extern void system_time_run(void);
extern void timestamp2date(size_t timestamp); // 时间戳转换,用于互联网同步时钟
extern uint8_t if_leap_year(uint16_t input_year); // 判断是否是闰年